package cn.wolfcode.trip.admin.controller;

import cn.wolfcode.trip.base.domain.ProductContent;
import cn.wolfcode.trip.base.service.IProductContentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
@RequestMapping("/productContent")
public class ProductContentController {
    @Autowired
    private IProductContentService productContentService;

    //获取对应id的内容
    @RequestMapping("/getContentById")
    @ResponseBody
    public ProductContent getContentById(Long id){
        return  productContentService.get(id);
    }


}
